package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.SysOrdersToolsMapper;
import com.ruoyi.system.domain.SysOrdersTools;
import com.ruoyi.system.service.ISysOrdersToolsService;

/**
 * 协调工具Service业务层处理
 *
 * @author ruoyi
 * @date 2021-11-18
 */
@Service
public class SysOrdersToolsServiceImpl implements ISysOrdersToolsService
{
    @Autowired
    private SysOrdersToolsMapper sysOrdersToolsMapper;

    /**
     * 查询协调工具
     *
     * @param orderId 协调工具主键
     * @return 协调工具
     */
    @Override
    public SysOrdersTools selectSysOrdersToolsByOrderId(String orderId)
    {
        return sysOrdersToolsMapper.selectSysOrdersToolsByOrderId(orderId);
    }

    /**
     * 查询协调工具列表
     *
     * @param sysOrdersTools 协调工具
     * @return 协调工具
     */
    @Override
    public List<SysOrdersTools> selectSysOrdersToolsList(SysOrdersTools sysOrdersTools)
    {
        return sysOrdersToolsMapper.selectSysOrdersToolsList(sysOrdersTools);
    }

    /**
     * 新增协调工具
     *
     * @param sysOrdersTools 协调工具
     * @return 结果
     */
    @Override
    public int insertSysOrdersTools(SysOrdersTools sysOrdersTools)
    {
        return sysOrdersToolsMapper.insertSysOrdersTools(sysOrdersTools);
    }

    /**
     * 修改协调工具
     *
     * @param sysOrdersTools 协调工具
     * @return 结果
     */
    @Override
    public int updateSysOrdersTools(SysOrdersTools sysOrdersTools)
    {
        return sysOrdersToolsMapper.updateSysOrdersTools(sysOrdersTools);
    }

    /**
     * 批量删除协调工具
     *
     * @param orderIds 需要删除的协调工具主键
     * @return 结果
     */
    @Override
    public int deleteSysOrdersToolsByOrderIds(String[] orderIds)
    {
        return sysOrdersToolsMapper.deleteSysOrdersToolsByOrderIds(orderIds);
    }

    /**
     * 删除协调工具信息
     *
     * @param orderId 协调工具主键
     * @return 结果
     */
    @Override
    public int deleteSysOrdersToolsByOrderId(String orderId)
    {
        return sysOrdersToolsMapper.deleteSysOrdersToolsByOrderId(orderId);
    }
}